package cn.ymatrix.service;


import java.util.ResourceBundle;

public class ConnectService {

    // MYSQL connect info
    public static final String MYSQL_IP;

    public static final int MYSQL_PORT;

    public static final String MYSQL_DB;

    public static final String MYSQL_USERNAME;

    public static final String MYSQL_PASSWORD;

    // YMatrix connect info
    public static final String  YMATRIX_URL;

    public static final String YMATRIX_DRIVER;

    public static final String  YMATRIX_USERNAME;

    public static final String  YMATRIX_PASSWORD;

    // MXGATE connect info
    public static final String MXGATE_UTL;

    static {
        ResourceBundle resource = ResourceBundle.getBundle("connect");
        MYSQL_IP = resource.getString("MYSQL_IP");
        MYSQL_PORT = Integer.parseInt(resource.getString("MYSQL_PORT"));
        MYSQL_DB = resource.getString("MYSQL_DB");
        MYSQL_USERNAME = resource.getString("MYSQL_USERNAME");
        MYSQL_PASSWORD = resource.getString("MYSQL_PASSWORD");
        MXGATE_UTL = resource.getString("MXGATE_UTL");
        YMATRIX_URL = resource.getString("YMATRIX_URL");
        YMATRIX_DRIVER = resource.getString("YMATRIX_DRIVER");
        YMATRIX_USERNAME = resource.getString("YMATRIX_USERNAME");
        YMATRIX_PASSWORD = resource.getString("YMATRIX_PASSWORD");
    }

}
